package com.jiawa.train.common.exception;

/**
 * @ClassName BusinessExceptionEnum
 * @Description
 * @Author GateOfRust
 * @Date 2024/5/15 下午11:54
 * @Version 1.0
 */

public enum BusinessExceptionEnum {
    //通过构造方法初始化枚举值
    MEMBER_MOBILE_EXIST("手机号已存在"),
    MEMBER_MOBILE_NOT_EXIST("请先获取手机号短信验证码"),
    MEMBER_MOBILE_ERROR_EXIST("短信验证码输入错误");

    private String desc;


    BusinessExceptionEnum(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "BusinessExceptionEnum{" +
                "desc='" + desc + '\'' +
                '}';
    }
}
